<template>
  <footer class="footer">
    <div class="singname">{{singname}}</div>
    <audio :src="musicUrl" controls autoplay></audio>
  </footer>
</template>

<script>
export default {
  props: ["musicUrl", "singname"],
  watch: {
    singname(val) {
      // this.musicAxios();
      // this.singid = val;
      // console.log(val);
    },
  },
};
</script>

<style lang="less" scoped>
.footer {
  width: 100%;
  height: 54px;
  background-color: rgb(241, 243, 244);
  display: flex;
  position: fixed;
  bottom: 0;
  audio {
    flex: 1;
    border-radius: 0;
    outline: none;
  }
  .singname {
    width: 100px;
    height: 54px;
    text-align: center;
    line-height: 54px;
    font-size: 13px;
    font-weight: 550;
    color: #a00;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
  }
}
</style>